#include "errorwindow.h"
#include "ui_errorwindow.h"

ErrorWindow::ErrorWindow(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ErrorWindow)
{
    ui->setupUi(this);
}

ErrorWindow::~ErrorWindow()
{
    delete ui;
}

void ErrorWindow::setLabel(QString str)
{
    ui->label->setText(str);
    ui->label->setAlignment(Qt::AlignCenter);   //居中显示
}



void ErrorWindow::on_pushButton_clicked()
{
    ErrorWindow::destroy();
}
